package modelLayer;


/**
 * Denne class omhandler Copyer, og har deres navn, adresse, post nummer, by og telefon nr.
 * Disse variabler kan ændres
 *  
 * 
 */
public class Copy
{
    private String serialNumber;
    private String purchaseDate;
    private double purchasePrice;
    private boolean isLentOut;
    private DVD dvd;
   
    /**
     * Constructor for objects of class Copy
     */
    public Copy(String serialNumber, String purchaseDate, double purchasePrice, DVD dvd)
    {
        this.serialNumber = serialNumber;
        this.purchaseDate = purchaseDate;
        this.purchasePrice = purchasePrice;
        this.dvd = dvd;
        this.isLentOut = false;
    }
    public Copy()
    {
        serialNumber = "MB123324435";
        purchaseDate = "10-04-1999";
        purchasePrice = 12.5;
    }
    public void printInformation(){
        System.out.println("Serialnumber: " + serialNumber);
        System.out.println("Purchase date: " + purchaseDate);
        System.out.println("Price: " + purchasePrice);
    }
        public String getSerialNumber() {
        return serialNumber;
    }
    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }
    public String getPurchaseDate() {
        return purchaseDate;
    }
    public void setPurchaseDate(String purchaseDate) {
        this.purchaseDate = purchaseDate;
    }
    public double getPurchasePrice() {
        return purchasePrice;
    }
    public void setPurchasePrice(double purchasePrice) {
        this.purchasePrice = purchasePrice;
    }
    
    public void setIsLentOutStatus(boolean status)
    {
        this.isLentOut = status;
    }
    
    public boolean isLentOut()
    {
        return isLentOut;
    }
    
    public DVD getDVD()
    {
        return this.dvd;
    }
   
}
